package com.atguigu.servicebase.exceptionhandler;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@NoArgsConstructor
@AllArgsConstructor
@Data
public class GuliException extends RuntimeException {//创建自定义异常类,业务中需要的位置抛出GuliException,添加异常处理方法

    @ApiModelProperty(value = "状态码")
    private Integer code;
    private String msg;

}
